"use strict";
var router_1 = require('@angular/router');
var layout_component_1 = require('../layout/layout.component');
var supplier_component_1 = require('./supplier.component');
var auth_guard_1 = require('../auth-guard');
var auth_service_1 = require('../scheme/auth.service');
var supplierRoutes = [
    {
        path: 'admin',
        component: layout_component_1.LayoutComponent,
        canActivateChild: [auth_guard_1.AuthGuard],
        children: [
            {
                path: 'supplier',
                component: supplier_component_1.SupplierComponent
            }
        ]
    }
];
exports.supplierRoutingProviders = [
    auth_guard_1.AuthGuard,
    auth_service_1.AuthService
];
exports.supplierRouting = router_1.RouterModule.forChild(supplierRoutes);
